package com.atguigu.tingshu.dispatch.handler;

import com.atguigu.tingshu.search.client.SearchClient;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SearchHandler {
    @Autowired
    private SearchClient searchClient;
    @XxlJob("updateLatelyAlbumRanking")
    public void updateLatelyAlbumRanking(){
        searchClient.updateLatelyAlbumRanking();
    }

}
